package com.countryside.service.impl;

import com.countryside.mapper.RegionMapper;
import com.countryside.pojo.Region;
import com.countryside.service.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RegionServiceImpl implements RegionService {
    @Autowired
    RegionMapper regionMapper;

    @Override
    public List<Region> getRegion(String fatherId) {
        return regionMapper.getRegion(fatherId);
    }

    @Override
    public Region getARegion(String id) {
        return regionMapper.getARegion(id);
    }
}
